<?php
namespace App\Controller;

use App\JsonRpc\UserInterface;
use App\Request\FooRequest;
use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Response;
use Hyperf\Utils\ApplicationContext;

/**
 * @AutoController()
 * Class IndexController
 * @package App\Controller
 */
class IndexController{
    public function index(FooRequest $request){
        $client = ApplicationContext::getContainer()->get(UserInterface::class);
        $res = $client->findById(1);
        return $res;
    }
}
